package com.aspose.cells;

class zavw {
   private com.aspose.cells.b.a.b.a.ze b = new com.aspose.cells.b.a.b.a.ze();
   private boolean c = false;
   private static byte[] d = new byte[]{0, 1, 1, -127};
   public static zavw a = new zavw();

   protected zavw() {
   }

   public zavw(com.aspose.cells.b.a.b.zo var1, com.aspose.cells.b.a.b.zo var2, com.aspose.cells.b.a.b.zo var3, com.aspose.cells.b.a.b.zo var4, boolean var5) {
      byte[] var6 = (byte[])com.aspose.cells.b.a.za.a(d);
      if (var5) {
         var6[3] |= -128;
      }

      this.b = new com.aspose.cells.b.a.b.a.ze(new com.aspose.cells.b.a.b.zo[]{var1, var2, var3, var4}, var6);
   }

   protected void finalize() throws Exception {
      this.a(false);
   }

   public void a() {
      this.a(true);
      com.aspose.cells.b.a.zg.a(this);
   }

   protected void a(boolean var1) {
      if (!this.c) {
         if (var1) {
            this.b.g();
         }

         this.c = true;
      }

   }

   public void a(zn var1, com.aspose.cells.b.a.b.zm var2, com.aspose.cells.b.a.b.zc var3, zje var4) {
      if (var4 != null && this.b.e() != 0) {
         if (var4.i().h() != 0) {
            var4.i().a(this.b, 0.5F);
         }

         if (var4.k().g()) {
            com.aspose.cells.b.a.b.zo[] var5 = this.b.c();
            if (var5.length >= 4) {
               com.aspose.cells.b.a.b.zm var6 = var4.k().b(this.b);

               try {
                  var1.a(var6, var5[0], var5[1]);
                  var1.a(var6, var5[1], var5[2]);
                  var1.a(var6, var5[2], var5[3]);
                  var1.a(var6, var5[3], var5[0]);
               } finally {
                  if (var6 != null) {
                     var6.r();
                  }

               }
            }
         }

      }
   }
}
